CPP=g++
CPPFLAGS=-O3 -ggdb3 -Wall -pedantic -ansi 
LDFLAGS = -I/usr/X11R6/include -L/usr/X11R6/lib -lglut -lGLU -lGL -lX11  -lXt -lXi -lXmu -lXext -lX11 -lm -lpthread -ggdb3
EXEC = Inpainting
SRC= $(wildcard src/*.cpp) main.cpp
INC= $(wildcard include/*.h)
OBJ= $(SRC:.cpp=.o)


all : $(EXEC)

Inpainting : $(OBJ)
	$(CPP) -o $@ $^ $(LDFLAGS)
	
%.o: %.cpp $(INC)
	$(CPP) -o $@ -c $< $(CPPFLAGS)


clean :
	rm -f *.o
	rm -f src/*.o
	rm -f Inpainting
